04. Create Model Classes

Create Model Classes

In this section, we will need to create model classes in order to model our data objects for the hotel reservation domain. For example, the hotel reservation application domain will include data models, like Customer, Room and Reservation.

Here are the steps you'll need to complete to create the model classes:

Create a new package

Task Description:

Now it's time to create our model package so we can start to add our data model classes.

Task List:

Task Feedback:

Nice work!

Create the RoomType enumeration

Task Description:

Next you'll need to create the ** RoomType enumeration**. The RoomType should have the following enumerations:

Task List:

Task Feedback:

Nice work!

Create the IRoom Interface

Task Description:

Next you'll need to create the IRoom Interface. It should have the following methods:

Task List:

Task Feedback:

Nice work!

Create the Room class

Task Description:

Next you'll need to create the Room class. It should have the following:

Task List:

Task Feedback:

Nice work!

Create the FreeRoom class

Task Description:

Next you'll need to create the FreeRoom class. It should have the following:

Task List:

Task Feedback:

Nice work!

Create the Customer class

Task Description:

Next you'll need to create the Customer class. It should have the following:

Task List:

Task Feedback:

Nice work!

Create a Reservation class

Task Description:

Next you'll need to create the ** Reservation class**. It should have the following:

Task List:

Task Feedback:

Nice work!